using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WPCoco.Tasks
{
    public class Tint : InstantTask<IColored>
    {
        public Tint(Color color)
        {
            Color = color;
        }

        Color color = Color.White;

        public Color Color
        {
            get { return color; }
            set { color = value; }
        }

        public override void InitializeWithTarget(IColored target)
        {

        }

        public override void UpdateWithTarget(IColored target, float time)
        {
            target.Color = color;
        }

        public override void FinishWithTarget(IColored target)
        {
            
        }

        public override Task Clone()
        {
            return new Tint(color);
        }
    }
}
